<template>
  <div>
    <div class="app-container main-content">
      <!-- 粒子效果 -->
      <div class="particles-container">
        <div v-for="n in 20" :key="`particle-${n}`" class="particle" :class="`p${n}`"></div>
      </div>
      
      <!-- 背景图层 -->
      <div class="background-image"></div>
      <div class="overlay-gradient"></div>
      
      <!-- 铁轨动画 -->
      <div class="animated-rails">
        <div class="rail rail-1"></div>
        <div class="rail rail-2"></div>
      </div>
      
      <!-- 高铁动画 -->
      <div class="train-animation">
        <div class="train-body"></div>
        <div class="train-window" v-for="n in 4" :key="`window-${n}`"></div>
        <div class="train-light"></div>
        <div class="train-wheel" v-for="n in 3" :key="`wheel-${n}`"></div>
      </div>

      <!-- 头部区域 -->
      <div class="header-section">
        <div class="glow-effect"></div>
        <div class="logo-container">
          <div class="logo-backdrop"></div>
          <img src="../assets/images/index-logo.png" alt="DIMS-HSRC Logo" class="logo-image">
          <div class="logo-shine"></div>
        </div>
        <div class="header-text">
          <h1 class="animated-title">DIMS-HSRC</h1>
          <div class="title-underline">
            <div class="underline-pulse"></div>
          </div>
          <p class="subtitle">需求驱动型高铁智能合同生成<span class="text-highlight">数字化集成平台</span></p>
        </div>
      </div>

      <!-- 内容区域 -->
      <div class="content-wrapper">
        <div class="cards-container">
          <!-- 卡片1 -->
          <div class="info-card" ref="card1">
            <div class="card-glow"></div>
            <div class="card-content">
              <div class="corner-decoration top-left"></div>
              <div class="corner-decoration top-right"></div>
              <div class="corner-decoration bottom-left"></div>
              <div class="corner-decoration bottom-right"></div>
              <div class="card-icon pulse-animation">
                <i class="el-icon-data-analysis"></i>
                <div class="icon-backdrop"></div>
              </div>
              <h2 class="card-title">多样化技术指标管理</h2>
              <div class="card-divider">
                <div class="divider-dot"></div>
                <div class="divider-line"></div>
                <div class="divider-dot"></div>
              </div>
              <p class="card-description">不同的车型、不同的运行环境，列车结构需要采用不同的技术指标。我们的平台可以精确管理第三方供货的列车结构技术参数，确保符合客户的具体需求。</p>
            </div>
            <div class="card-backdrop"></div>
          </div>

          <!-- 卡片2 -->
          <div class="info-card" ref="card2">
            <div class="card-glow"></div>
            <div class="card-content">
              <div class="corner-decoration top-left"></div>
              <div class="corner-decoration top-right"></div>
              <div class="corner-decoration bottom-left"></div>
              <div class="corner-decoration bottom-right"></div>
              <div class="card-icon pulse-animation">
                <i class="el-icon-document"></i>
                <div class="icon-backdrop"></div>
              </div>
              <h2 class="card-title">智能合同支持系统</h2>
              <div class="card-divider">
                <div class="divider-dot"></div>
                <div class="divider-line"></div>
                <div class="divider-dot"></div>
              </div>
              <p class="card-description">本平台为高速列车制造商提供智能化工具，根据客户需求自动生成列车结构供货技术条件，为采购合同提供精确的技术依据，大幅提高采购效率与技术匹配度。</p>
            </div>
            <div class="card-backdrop"></div>
          </div>
        </div>
      </div>

      <!-- 页脚 -->
      <footer class="page-footer">
        <div class="footer-content">
          <div class="footer-glow"></div>
          <div class="footer-row">
            <p>© {{ currentYear }} 西南交通大学 <span class="footer-highlight">版权所有</span></p>
          </div>
          <div class="footer-row">
            <p class="version-info">版本号：<span class="version-number">{{ version }}</span></p>
          </div>
          <div class="footer-row">
            <p class="footer-links">
              <a class="footer-about" href="javascript:void(0)" @click="showAboutInfo">
                <span class="link-text">关于我们</span>
                <span class="link-hover-effect"></span>
              </a> 
              <span class="divider-dot"></span>
              <a class="footer-contact" href="javascript:void(0)" @click="showContactInfo">
                <span class="link-text">联系方式</span>
                <span class="link-hover-effect"></span>
              </a>
            </p>
          </div>
        </div>
      </footer>

    <el-dialog
  title="关于我们"
  :visible.sync="aboutDialogVisible"
  width="450px"
  custom-class="frosted-dialog"
  center
>
  <div class="dialog-content">
    <div class="dialog-icon shine-animation">
      <i class="el-icon-info"></i>
    </div>
    <h3 class="dialog-title">DIMS-HSRC</h3>
    <div class="gradient-divider"></div>
    <div class="about-details">
      <p><span class="label">项目：</span><span class="value-text">需求驱动型高铁智能合同生成系统</span></p>
      <p><span class="label">版本：</span><span class="value-text">{{ version }}</span></p>
      <p><span class="label">开发：</span><span class="value-text">西南交通大学 2021115897 赵浩然</span></p>
    </div>
    <p class="dialog-note shine-animation">毕业设计软件平台示例</p>
  </div>
</el-dialog>

<!-- 联系方式对话框 -->
<el-dialog
  title="联系方式"
  :visible.sync="contactDialogVisible"
  width="450px"
  custom-class="frosted-dialog"
  center
>
  <div class="dialog-content">
    <div class="dialog-icon shine-animation">
      <i class="el-icon-phone-outline"></i>
    </div>
    <h3 class="dialog-title">与我们联系</h3>
    <div class="gradient-divider"></div>
    <div class="contact-items-container">
      <div class="contact-item" @click="copyToClipboard('905591339@qq.com')">
        <div class="contact-icon">
          <div class="icon-ripple"></div>
          <i class="el-icon-message"></i>
        </div>
        <span>905591339@qq.com</span>
        <i class="el-icon-document-copy copy-icon"></i>
      </div>
      <div class="contact-item" @click="copyToClipboard('18982081308')">
        <div class="contact-icon">
          <div class="icon-ripple"></div>
          <i class="el-icon-phone"></i>
        </div>
        <span>18982081308</span>
        <i class="el-icon-document-copy copy-icon"></i>
      </div>
      <div class="contact-item" @click="openGitee">
        <div class="contact-icon">
          <div class="icon-ripple"></div>
          <i class="el-icon-link"></i>
        </div>
        <span>关注我的开源项目</span>
        <i class="el-icon-top-right link-icon"></i>
      </div>
    </div>
  </div>
</el-dialog>
    </div>
  </div>
</template>

<script>
export default {
  name: "Index",
  data() {
    return {
      version: "1.7.28",
      currentYear: new Date().getFullYear(),
      aboutDialogVisible: false,
      contactDialogVisible: false,
      mousePosition: { x: 0, y: 0 }
    };
  },
  mounted() {
    // 3D card hover effect
    if (this.$refs.card1 && this.$refs.card2) {
      this.setupCardTilt(this.$refs.card1);
      this.setupCardTilt(this.$refs.card2);
    }
    
    // Init particles animation
    this.initParticlesAnimation();
    
    // Glow effect follower
    window.addEventListener('mousemove', this.handleMouseMove);
  },
  beforeDestroy() {
    window.removeEventListener('mousemove', this.handleMouseMove);
  },
  methods: {
    handleMouseMove(e) {
      this.mousePosition = {
        x: e.clientX,
        y: e.clientY
      };
      
      // Update glow positions based on mouse
      this.updateGlowEffects();
    },
    updateGlowEffects() {
      const cards = document.querySelectorAll('.card-glow');
      cards.forEach(card => {
        const rect = card.parentElement.getBoundingClientRect();
        const centerX = rect.left + rect.width / 2;
        const centerY = rect.top + rect.height / 2;
        
        const distanceX = this.mousePosition.x - centerX;
        const distanceY = this.mousePosition.y - centerY;
        
        if (Math.abs(distanceX) < rect.width && Math.abs(distanceY) < rect.height) {
          const intensity = 1 - Math.sqrt(distanceX*distanceX + distanceY*distanceY) / Math.sqrt(rect.width*rect.width + rect.height*rect.height);
          card.style.opacity = Math.min(0.8, intensity);
          card.style.transform = `translate(${distanceX/10}px, ${distanceY/10}px)`;
        } else {
          card.style.opacity = 0;
        }
      });
    },
    setupCardTilt(cardElement) {
      let bounds;
      
      const handleMouseMove = (e) => {
        const mouseX = e.clientX;
        const mouseY = e.clientY;
        
        const leftX = mouseX - bounds.x;
        const topY = mouseY - bounds.y;
        
        const center = {
          x: leftX - bounds.width / 2,
          y: topY - bounds.height / 2
        };
        
        const distance = Math.sqrt(center.x * center.x + center.y * center.y);
        
        cardElement.style.transform = `
          scale3d(1.04, 1.04, 1.04)
          rotate3d(
            ${center.y / 100},
            ${-center.x / 100},
            0,
            ${Math.log(distance) * 2}deg
          )
        `;
        
        cardElement.querySelector('.card-content').style.transform = `
          translateZ(40px)
        `;
        
        cardElement.querySelector('.card-backdrop').style.transform = `
          translateZ(10px)
          rotate3d(
            ${center.y / 100},
            ${-center.x / 100},
            0,
            ${Math.log(distance) * 0.5}deg
          )
        `;
      };
      
      const handleMouseEnter = () => {
        bounds = cardElement.getBoundingClientRect();
        cardElement.style.transition = "none";
        cardElement.querySelector('.card-content').style.transition = "none";
        cardElement.querySelector('.card-backdrop').style.transition = "none";
      };
      
      const handleMouseLeave = () => {
        cardElement.style.transition = "all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)";
        cardElement.style.transform = `
          scale3d(1, 1, 1)
          rotate3d(0, 0, 0, 0deg)
        `;
        
        cardElement.querySelector('.card-content').style.transition = "all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)";
        cardElement.querySelector('.card-content').style.transform = "translateZ(0)";
        
        cardElement.querySelector('.card-backdrop').style.transition = "all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)";
        cardElement.querySelector('.card-backdrop').style.transform = "translateZ(0) rotate3d(0, 0, 0, 0deg)";
      };
      
      cardElement.addEventListener('mouseenter', handleMouseEnter);
      cardElement.addEventListener('mousemove', handleMouseMove);
      cardElement.addEventListener('mouseleave', handleMouseLeave);
    },
    initParticlesAnimation() {
      const particles = document.querySelectorAll('.particle');
      particles.forEach((particle, index) => {
        const delay = Math.random() * 5;
        const duration = 7 + Math.random() * 8;
        particle.style.animationDelay = `${delay}s`;
        particle.style.animationDuration = `${duration}s`;
        
        // Random starting positions
        const top = Math.random() * 100;
        const left = Math.random() * 100;
        particle.style.top = `${top}%`;
        particle.style.left = `${left}%`;
      });
    },
    showAboutInfo() {
      this.aboutDialogVisible = true;
    },
    showContactInfo() {
      this.contactDialogVisible = true;
    },
    copyToClipboard(text) {
      navigator.clipboard.writeText(text).then(() => {
        this.$message({
          message: '已复制到剪贴板',
          type: 'success',
          duration: 1500
        });
      }).catch(() => {
        this.$message({
          message: '复制失败，请手动复制',
          type: 'error'
        });
      });
    },
    openGitee() {
      window.open('https://gitee.com/zhhrrrr', '_blank');
    }
  }
};
</script>

<style lang="scss" scoped>
// 基础样式
.app-container {
  position: relative;
  padding-top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  perspective: 1200px;
}

.main-content {
  position: relative;
  padding-top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

// 粒子动画
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.2;
  animation: float linear infinite;
  z-index: 1;
  box-shadow: 0 0 10px 2px rgba(100, 149, 237, 0.3);
}

@for $i from 1 through 20 {
  $opacity: (random(5) + 2) * 0.1;
  $size: random(8) + px;
  $shadow-blur: random(15) + px;
  $shadow-spread: random(4) + px;
  
  .p#{$i} {
    width: $size;
    height: $size;
    opacity: $opacity;
    box-shadow: 0 0 $shadow-blur $shadow-spread rgba(100, 149, 237, 0.3);
  }
}

@keyframes float {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(20px, 20px, 0) rotate(90deg);
  }
  50% {
    transform: translate3d(0, 40px, 0) rotate(180deg);
  }
  75% {
    transform: translate3d(-20px, 20px, 0) rotate(270deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(360deg);
  }
}

// 背景和渐变效果
.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #111 0%, #333 100%);
  z-index: -2;
}

.overlay-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(5,50,120,0.25) 0%, rgba(0,0,0,0.4) 100%);
  z-index: -1;
}

// 铁轨动画
.animated-rails {
  position: absolute;
  bottom: 85px;
  left: 0;
  width: 100%;
  height: 10px;
  z-index: 2;
}

.rail {
  position: absolute;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, 
    rgba(150, 150, 150, 0) 0%, 
    rgba(150, 150, 150, 0.5) 10%, 
    rgba(150, 150, 150, 0.5) 90%, 
    rgba(150, 150, 150, 0) 100%
  );
}

.rail-1 {
  top: 0;
}

.rail-2 {
  top: 10px;
}

// 高铁动画
.train-animation {
  position: absolute;
  bottom: 85px;
  left: -120px;
  width: 130px;
  height: 30px;
  z-index: 3;
  animation: trainMove 15s infinite linear;
}

.train-body {
  position: absolute;
  width: 120px;
  height: 18px;
  background: linear-gradient(135deg, #e1e1e1 0%, #f5f5f5 50%, #e1e1e1 100%);
  border-radius: 15px 25px 8px 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  
  &:before {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    width: 115px;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 120, 255, 0.7), rgba(0, 120, 255, 0.2));
    border-radius: 2px;
  }
}

.train-window {
  position: absolute;
  width: 12px;
  height: 6px;
  top: 4px;
  background: rgba(100, 200, 255, 0.7);
  border-radius: 4px;
  box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.4), 0 0 2px rgba(0, 0, 0, 0.3);
}

.train-window:nth-child(2) { left: 15px; }
.train-window:nth-child(3) { left: 35px; }
.train-window:nth-child(4) { left: 55px; }
.train-window:nth-child(5) { left: 75px; }

.train-light {
  position: absolute;
  width: 5px;
  height: 5px;
  top: 6px;
  right: 5px;
  background: #ffcc00;
  border-radius: 50%;
  box-shadow: 0 0 12px 4px rgba(255, 204, 0, 0.8);
  animation: lightPulse 0.5s infinite alternate;
}

.train-wheel {
  position: absolute;
  width: 8px;
  height: 8px;
  bottom: -4px;
  background: #333;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: wheelRotate 1s infinite linear;
}

.train-wheel:nth-child(6) { left: 15px; }
.train-wheel:nth-child(7) { left: 40px; }
.train-wheel:nth-child(8) { left: 65px; }

@keyframes trainMove {
  0% { left: -120px; }
  100% { left: 100%; }
}

@keyframes lightPulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

@keyframes wheelRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

// 头部样式
.header-section {
  width: 100%;
  padding: 40px 50px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.glow-effect {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle at center,
    rgba(100, 149, 237, 0.2) 0%,
    rgba(100, 149, 237, 0) 60%
  );
  border-radius: 50%;
  top: 20px;
  left: 40px;
  z-index: -1;
}

.logo-container {
  margin-right: 35px;
  position: relative;
  width: 80px;
  height: 80px;
}

.logo-backdrop {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  filter: blur(5px);
}

.logo-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.logo-shine {
  position: absolute;
  top: 0;
  left: -150%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: logoShine 5s infinite;
}

.header-text {
  flex: 1;
}

.animated-title {
  font-size: 42px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(90deg, #fff, #6495ed, #fff);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 5px 15px rgba(100, 149, 237, 0.3);
  animation: titleGradient 5s infinite;
  letter-spacing: 1px;
}

.title-underline {
  width: 120px;
  height: 2px;
  background: rgba(100, 149, 237, 0.5);
  margin: 5px 0 12px;
  position: relative;
  overflow: hidden;
}

.underline-pulse {
  position: absolute;
  width: 30px;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: underlinePulse 3s infinite;
  left: -30px;
}

.subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  letter-spacing: 0.5px;
}

.text-highlight {
  color: rgba(100, 149, 237, 0.9);
  font-weight: 500;
  position: relative;
  display: inline-block;
  
  &:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(100, 149, 237, 0.6);
    bottom: -2px;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    animation: highlightUnderline 3s infinite;
  }
}

@keyframes titleGradient {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

@keyframes underlinePulse {
  0% { left: -30px; }
  100% { left: 150px; }
}

@keyframes highlightUnderline {
  0%, 20% { transform: scaleX(0); }
  40%, 60% { transform: scaleX(1); }
  80%, 100% { transform: scaleX(0); transform-origin: right; }
}

.content-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  margin-bottom: 100px;
}

.card-button {
  margin-top: 15px;
  border-radius: 20px;
  padding: 10px 20px;
  font-weight: 500;
  letter-spacing: 1px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.card-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.page-footer {
  height: 80px;
  line-height: normal;
  background-color: #333;
  color: #eee;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

:deep(.navbar) {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  height: 50px !important;
  width: 100% !important;
  z-index: 999 !important;
  background: #fff !important;
}

:deep(.tags-view-container) {
  position: fixed !important;
  top: 50px;
  left: 0;
  right: 0;
  height: 34px !important;
  width: 100% !important;
  z-index: 998 !important;
  background: #f0f0f0 !important;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
  margin-bottom: 100px;
}

.info-card {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 3px solid #555;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.card-icon {
  font-size: 36px;
  color: #444;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.info-card h2 {
  font-size: 24px;
  margin: 0 0 18px 0;
  color: #333;
  line-height: 1.3;
  font-weight: 600;
  text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.1);
  letter-spacing: 0.3px;
}

.info-card p {
  font-size: 15px;
  margin: 0 0 12px 0;
  color: #444;
  line-height: 1.7;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  text-align: center;
}

.footer-row {
  margin: 5px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-content p {
  color: #eee;
  margin: 0;
  padding: 3px 0;
  text-align: center;
  width: 100%;
}

.version-info {
  color: #bbb;
  margin: 0;
  display: inline-block;
}

.footer-links {
  display: inline-block;
  text-align: center;
}

.footer-about,
.footer-contact {
  color: #bbb;
  padding: 0 10px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s, transform 0.2s;
  display: inline-block;
}

.footer-about:hover,
.footer-contact:hover {
  color: #fff;
  text-decoration: underline;
  transform: translateY(-1px);
}

.frosted-glass {
  background-color: rgba(240, 240, 240, 0.7);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  transition: all 0.3s ease;
}

.about-content,
.contact-content {
  text-align: center;
  padding: 35px 25px;

  .dialog-icon {
    margin: 0 auto 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 45px;
    background: linear-gradient(145deg, #f0f0f0, #d5d5d5);
    box-shadow:
      6px 6px 12px #c5c5c5,
      -6px -6px 12px #ffffff,
      inset 1px 1px 2px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;

    &:after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
      top: -10px;
      left: -10px;
    }

    i {
      font-size: 42px;
      color: #444;
      text-shadow: 1px 1px 3px rgba(255,255,255,0.8);
      position: relative;
      z-index: 2;
    }
  }

  .dialog-title {
    font-size: 24px;
    color: #333;
    margin: 0 0 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
  }

  .gradient-divider {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #666, #999, #666);
    margin: 0 auto 28px;
    border-radius: 2px;
    position: relative;

    &:before, &:after {
      content: '';
      position: absolute;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #888;
      top: -2px;
    }

    &:before {
      left: -4px;
    }

    &:after {
      right: -4px;
    }
  }

  .about-details {
    margin: 20px 0;
    background-color: rgba(255, 255, 255, 0.4);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);

    p {
      margin: 10px 0;
      font-size: 16px;
      color: #444;

      .label {
        font-weight: 600;
        color: #333;
        margin-right: 5px;
        display: inline-block;
        min-width: 45px;
      }

      .value-text {
        color: #555;
      }
    }
  }

  .dialog-note {
    font-style: italic;
    color: #666;
    margin-top: 25px;
    font-size: 15px;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  }
}

.contact-items-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 10px;

  .contact-item {
    display: flex;
    align-items: center;
    width: 90%;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);

    &:hover {
      background-color: rgba(255, 255, 255, 0.6);
      transform: translateY(-3px);
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);

      .copy-icon, .link-icon {
        opacity: 1;
        transform: translateX(0);
      }
      
      .icon-ripple {
        transform: scale(1.5);
        opacity: 0;
      }
    }

    &:active {
      transform: translateY(0);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    &:after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
      transform: translateX(-100%);
      opacity: 0;
      transition: transform 0.5s ease;
    }

    &:active:after {
      transform: translateX(100%);
      opacity: 0.5;
    }

    .contact-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: rgba(0, 0, 0, 0.06);
      margin-right: 15px;
      box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
      position: relative;

      i {
        font-size: 20px;
        color: #555;
        position: relative;
        z-index: 2;
      }
      
      .icon-ripple {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(100,149,237,0.2) 0%, rgba(100,149,237,0) 70%);
        border-radius: 50%;
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
        transition: all 0.5s ease;
      }
    }

    span {
      flex: 1;
      font-size: 15px;
      color: #333;
      font-weight: 500;
      text-align: left;
    }

    .copy-icon, .link-icon {
      font-size: 18px;
      color: #666;
      margin-left: 15px;
      opacity: 0.5;
      transition: all 0.3s ease;
      transform: translateX(5px);

      &:hover {
        color: #333;
      }
    }
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow:
      6px 6px 12px #c5c5c5,
      -6px -6px 12px #ffffff,
      inset 1px 1px 2px rgba(255, 255, 255, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow:
      8px 8px 16px #c5c5c5,
      -8px -8px 16px #ffffff,
      inset 1px 1px 2px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
  }
  100% {
    box-shadow:
      6px 6px 12px #c5c5c5,
      -6px -6px 12px #ffffff,
      inset 1px 1px 2px rgba(255, 255, 255, 0.5);
    transform: scale(1);
  }
}

.shine-animation {
  position: relative;
  overflow: hidden;

  &:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      60deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0) 30%,
      rgba(255,255,255,0.5) 50%,
      rgba(255,255,255,0) 70%,
      rgba(255,255,255,0) 100%
    );
    opacity: 0.2;
    transform: rotate(30deg);
    animation: shine 4s infinite linear;
  }
}

@keyframes shine {
  0% {
    left: -100%;
    opacity: 0;
  }
  10% {
    left: -100%;
    opacity: 0.3;
  }
  50% {
    left: 100%;
    opacity: 0.3;
  }
  51% {
    opacity: 0;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

:deep(.el-dialog.frosted-dialog) {
  border-radius: 20px;
  overflow: hidden;
  background-color: rgba(245, 245, 245, 0.75);
  backdrop-filter: blur(25px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;

  .el-dialog__header {
    padding: 22px 20px;
    background: linear-gradient(to right, rgba(240,240,240,0.9), rgba(225,225,225,0.9));
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;

    &:after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 5%;
      width: 90%;
      height: 1px;
      background: linear-gradient(to right, transparent, rgba(255,255,255,0.7), transparent);
    }

    .el-dialog__title {
      font-weight: 600;
      color: #333;
      font-size: 20px;
      letter-spacing: 1.5px;
      text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
    }
  }

  .el-dialog__body {
    padding: 0;
    background-color: transparent;
  }

  .el-dialog__headerbtn {
    top: 20px;
    right: 20px;

    .el-dialog__close {
      color: #555;
      font-size: 20px;
      transition: all 0.3s ease;
      transform-origin: center center;

      &:hover {
        color: #333;
        transform: rotate(90deg);
      }
    }
  }
}

@media (max-width: 768px) {
  .header-section {
    flex-direction: column;
    padding: 20px;
    width: calc(100% - 40px);
  }

  .logo-container {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .header-text {
    text-align: center;
  }

  .content-wrapper {
    padding: 25px 20px;
  }

  .cards-container {
    gap: 25px;
    margin-bottom: 110px;
  }

  .info-card {
    min-width: 100%;
    padding: 25px;
  }

  .page-footer {
    height: auto;
    padding: 12px 0;
  }
}

/* Dialog styles */
.dialog-content {
  padding: 30px;
  text-align: center;
}

.dialog-icon {
  margin: 0 auto 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0f0f0, #d5d5d5);
  box-shadow:
    6px 6px 12px #c5c5c5,
    -6px -6px 12px #ffffff,
    inset 1px 1px 2px rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;

  i {
    font-size: 36px;
    color: #444;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.8);
    position: relative;
    z-index: 2;
  }
}

.dialog-title {
  font-size: 24px;
  color: #333;
  margin: 0 0 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.gradient-divider {
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #666, #999, #666);
  margin: 0 auto 28px;
  border-radius: 2px;
  position: relative;

  &:before, &:after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #888;
    top: -2px;
  }

  &:before {
    left: -4px;
  }

  &:after {
    right: -4px;
  }
}

.about-details {
  margin: 20px 0;
  background-color: rgba(255, 255, 255, 0.4);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);

  p {
    margin: 10px 0;
    font-size: 16px;
    color: #444;

    .label {
      font-weight: 600;
      color: #333;
      margin-right: 5px;
      display: inline-block;
      min-width: 45px;
    }

    .value-text {
      color: #555;
    }
  }
}

.dialog-note {
  font-style: italic;
  color: #666;
  margin-top: 25px;
  font-size: 15px;
  display: inline-block;
  padding: 8px 15px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Contact dialog specific styles */
.contact-items-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  width: 90%;
  padding: 15px 20px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);

  &:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);

    .copy-icon, .link-icon {
      opacity: 1;
      transform: translateX(0);
    }
    
    .icon-ripple {
      transform: scale(1.5);
      opacity: 0;
    }
  }

  &:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  &:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.5s ease;
  }

  &:active:after {
    transform: translateX(100%);
    opacity: 0.5;
  }

  .contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.06);
    margin-right: 15px;
    box-shadow:
      0 3px 8px rgba(0, 0, 0, 0.05),
      inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    position: relative;

    i {
      font-size: 20px;
      color: #555;
      position: relative;
      z-index: 2;
    }
    
    .icon-ripple {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 100%;
      height: 100%;
      background: radial-gradient(circle, rgba(100,149,237,0.2) 0%, rgba(100,149,237,0) 70%);
      border-radius: 50%;
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.7;
      transition: all 0.5s ease;
    }
  }

  span {
    flex: 1;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    text-align: left;
  }

  .copy-icon, .link-icon {
    font-size: 18px;
    color: #666;
    margin-left: 15px;
    opacity: 0.5;
    transition: all 0.3s ease;
    transform: translateX(5px);

    &:hover {
      color: #333;
    }
  }
}

/* Dialog animation styles */
.shine-animation {
  position: relative;
  overflow: hidden;

  &:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      60deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0) 30%,
      rgba(255,255,255,0.5) 50%,
      rgba(255,255,255,0) 70%,
      rgba(255,255,255,0) 100%
    );
    opacity: 0.2;
    transform: rotate(30deg);
    animation: shine 4s infinite linear;
  }
}

/* Dialog frosted glass effect */
:deep(.el-dialog.frosted-dialog) {
  border-radius: 20px;
  overflow: hidden;
  background-color: rgba(245, 245, 245, 0.75);
  backdrop-filter: blur(25px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;

  .el-dialog__header {
    padding: 22px 20px;
    background: linear-gradient(to right, rgba(240,240,240,0.9), rgba(225,225,225,0.9));
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;

    &:after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 5%;
      width: 90%;
      height: 1px;
      background: linear-gradient(to right, transparent, rgba(255,255,255,0.7), transparent);
    }

    .el-dialog__title {
      font-weight: 600;
      color: #333;
      font-size: 20px;
      letter-spacing: 1.5px;
      text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
    }
  }

  .el-dialog__body {
    padding: 0;
    background-color: transparent;
  }

  .el-dialog__headerbtn {
    top: 20px;
    right: 20px;

    .el-dialog__close {
      color: #555;
      font-size: 20px;
      transition: all 0.3s ease;
      transform-origin: center center;

      &:hover {
        color: #333;
        transform: rotate(90deg);
      }
    }
  }
}

@keyframes shine {
  0% {
    left: -100%;
    opacity: 0;
  }
  10% {
    left: -100%;
    opacity: 0.3;
  }
  50% {
    left: 100%;
    opacity: 0.3;
  }
  51% {
    opacity: 0;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}
</style>

